package com.meizhitech.mzcmsapi.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class StringUtil {
    private StringUtil(){}

    /**
     * 密码规则校验
     */
    public static  boolean isPassWord(String password){
        Pattern pattern = Pattern.compile("^.*(?=.{6,})(?=.*\\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*? ]).*$");
        Matcher matcher = pattern.matcher(password);
        return  matcher.matches();
    }
}
